<template>
    <view class="content">
        <view class="text-area app">
            <button
                :disabled="false"
                :loading="false"
                open-type=""
                hover-class="button-hover"
                @click="doLogin"
            >
                登录
            </button>
        </view>
        <Tabbar v-show="false"></Tabbar>
    </view>
</template>

<script setup lang="ts">
import Tabbar from "@/components/Tabbar/index.vue";
import { userStore } from "@/store/user";
import { onShow } from "@dcloudio/uni-app";
import { storeToRefs } from "pinia";
const $user = userStore();
const { businessId } = storeToRefs($user);
onShow(() => {
    console.log($user.businessId);
});

const doLogin = () => {
    uni.switchTab({
        url: "/pages/homePage/index",
    });
};
</script>

<style lang="scss"></style>
